package com.sinosoft.validateCode.image;

/**
 * 题目答案
 * @author handong
 */
public class Answer {


    /**
     * 移动单位
     */
    private int moveSize;

    public int getMoveSize() {
        return moveSize;
    }

    public void setMoveSize(int moveSize) {
        this.moveSize = moveSize;
    }

    public Answer() {
    }

    public Answer(int moveSize) {
        this.moveSize = moveSize;
    }

    public boolean answer(int  moveSize , Point[] mouse_track , int drift_rate){
       //移动
       int drift_moveSize = Math.abs(this.moveSize - moveSize) ;


       //计算移动轨迹是否为机械答案
       if (machine_answer(mouse_track)){
           return  false;
       }

       //计算移动长度
       if (drift_moveSize <= drift_rate){
           return  true;
       }


       return false;
    }


    public boolean machine_answer(Point[] mouse_track){




        return  false;
    }



}
